const exception = require('../exception');

const User = require('./user');
const Merchant = require('./merchant');
const Device = require('./device');
const AlarmContactGroup =  require('./alarm_contact_group.js');
const AlarmContactGroupDevice =  require('./alarm_contact_group_device.js');
const AlarmContactGroupUser =  require('./alarm_contact_group_user.js');
const AlarmEvent =  require('./alarm_event.js');
const AlarmNoticeRecord =  require('./alarm_notice_record.js');
const Face =  require('./face.js');
const ReportNoticeRecord =  require('./report_notice_record.js');
const ReportUser =  require('./report_user.js');
const ReportUserGroup =  require('./report_user_group.js');
const ReportUserGroupDevice =  require('./report_user_group_device.js');
const ReportUserGroupReportUser =  require('./report_user_group_report_user.js');
const Config =  require('./config.js');


// (async () => {
//     // await sequelize.sync({ force: true });
//     // 这里是代码
//
//     db.user.create({username: "zhangddd1",mobile:'1381765012',password:'123456',status:1 });
//     console.log('一个用户数据,已保存到数据库!');
//     // const oneUser = db.User.build({ id:0,username: "zhangsan",mobile:'1381765012',password:'123456',status:1 });
//     // await oneUser.save();
//     // console.log('一个用户数据,已保存到数据库!');
// })();

module.exports = {
    User:User,
    Merchant:Merchant,
    Device:Device,
    AlarmContactGroup:AlarmContactGroup,
    AlarmContactGroupDevice:AlarmContactGroupDevice,
    AlarmContactGroupUser:AlarmContactGroupUser,
    AlarmEvent:AlarmEvent,
    AlarmNoticeRecord:AlarmNoticeRecord,
    Face:Face,
    ReportNoticeRecord:ReportNoticeRecord,
    ReportUser:ReportUser,
    ReportUserGroup:ReportUserGroup,
    ReportUserGroupDevice:ReportUserGroupDevice,
    ReportUserGroupReportUser:ReportUserGroupReportUser,
    Config:Config
};
